home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Compute! Gazette 1992 August
/
1992-08.d64
/
tag it
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-09-20
|
3KB
|
71 lines
0 clr
10 rem-z
20 poke53280,0:poke53281,0:poke646,3:print"[147]tag it working....."
30 sa=49152
40 ea=sa+375
50 rem-poke it in
60 fori=satoea:read d:ck=ck+d:pokei,d:next
70 ifck<>46139thenprint"error in data ststements":end
80 rem-relocate
90 fk=sa+376
100 h1=int((sa+13)/256):l1=(sa+13)-h1*256
110 h2=int((sa+341)/256):l2=(sa+341)-h2*256
120 h3=int((sa+342)/256):l3=(sa+342)-h3*256
130 h4=int((sa+376)/256):l4=(sa+376)-h4*256
140 pokesa+02,l1:pokesa+07,h1
150 pokesa+56,l2:pokesa+57,h2
160 pokesa+61,l2:pokesa+62,h2
170 pokesa+66,l3:pokesa+67,h3
180 pokesa+96,l4:pokesa+97,h4
190 pokesa+107,l4:pokesa+108,h4
200 :
210 rem-fn keys
220 f$(1) ="poke53280,1:poke53281,2:poke646,3"+chr$(13)
230 f$(2) ="function key 2"
240 f$(3) ="list:"+chr$(13)
250 f$(4) ="run:"+chr$(13)
260 print
270 for r=1 to 4 :iff$(r)=""thenf$(r)=" "
280 next
290 for r=1to4:l=l+len(f$(r)):next: ifl>250thenprint"fn keys too long":end
300 tt=-1:for r=1to4
310 fori=1tolen(f$(r))
320 t$=mid$(f$(r),i):tt=tt+1:pokefk+tt,asc(t$)
330 nexti
340 tt=tt+1:pokefk+tt,0
350 nextr
360 ea=ea+l+5
370 rem-activate
380 syssa
390 print"activated "
400 print: print"located at :";sa;" - ";ea
410 print:print"save object file (y/n) ?":poke198,0:wait198,1:geta$
420 ifa$<>"y"thenend
430 print: input"filename";f$
440 rem-save obj file
450 sys57812f$,8:poke173,sa/256:poke172,sa-peek(173)*256:poke780,172
460 poke782,ea/256:poke781,ea-peek(782)*256:sys65496
470 rem-data
480 data120,169,011,141,143,002,169,192,141,144,2,88,096,173,141,002,201,002,240
490 data 013,201,006,208,006,169,000,133,212,133,216,076,072,235,165,212,208
500 data 249,165,216,208,245,165,157,240,241,165,203,133,002,169,064,133,203
510 data 165,002,205,083,193,240,226,141,083,193,160,000,185,084,193,197,002
520 data 240,012,200,192,034,208,244,165,002,133,203,076,072,235,192,004,176
530 data 048,162,255,200,136,240,011,232,189,118,193,201,000,208,248,136,208
540 data 245,232,189,118,193,201,000,240,020,201,013,240,007,032,202,241,232
550 data 056,176,238,169,013,141,119,002,169,001,133,198,076,072,235,192,008
560 data 176,089,132,002,165,207,240,012,165,206,174,135,002,160,000,132,207
570 data 032,019,234,165,211,133,251,169,000,133,212,133,216,133,199,133,211
580 data 164,002,192,004,208,003,056,176,032,192,005,208,007,169,039,133,211
590 data 056,176,021,192,006,208,007,169,019,133,211,056,176,010,169,024,133
600 data 214,032,108,229,076,072,235,165,251,201,040,144,007,024,165,211,105
610 data 040,133,211,076,072,235,152,024,105,057,133,253,165,043,133,002,165
620 data 044,133,003,160,000,177,002,133,004,200,177,002,133,005,200,177,002
630 data 133,251,200,177,002,133,252,200,177,002,201,143,208,056,200,177,002
640 data 201,045,208,049,200,177,002,197,253,208,042,169,141,032,202,241,169
650 data 076,032,202,241,169,201,032,202,241,166,251,165,252,032,205,189,169
660 data 045,032,202,241,169,058,032,202,241,169,013,141,119,002,169,001,133
670 data 198,096,165,004,133,002,165,005,240,005,133,003,056,176,159,096,064
680 data 004,005,006,003,047,044,055,007,010,028,020,018,014,021,026,029,033
690 data 034,037,042,036,039,038,041,062,017,013,022,030,031,009,023,025,012